# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/29 下午6:07
 @Author  : tgy
 
"""
import os, sys


def test01():
    ...
    fd = os.open('5.1 读写文本数据.py', os.O_RDWR | os.O_CREAT)

    f = open(fd, mode='rt', closefd=False)

    print(f.read())

    os.close(fd)


if __name__ == '__main__':
    ...
    # test01()
    print(sys.stdout.fileno())